package com.fjec.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 002.字典类型表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@TableName("sys_dict_type")
public class SysDictType implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 父Id
     */
    @TableField("ParentId")
    private Long parentId;

    /**
     * 编码
     */
    @TableField("DictTypeCode")
    private String dictTypeCode;

    /**
     * 名称
     */
    @TableField("DictTypeName")
    private String dictTypeName;

    /**
     * 类型 1=list
2=tree
     */
    @TableField("DictTypeType")
    private Integer dictTypeType;

    /**
     * 排序
     */
    @TableField("Sort")
    private Integer sort;

    /**
     * 是否叶子
     */
    @TableField("Leaf")
    private Integer leaf;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    public String getDictTypeCode() {
        return dictTypeCode;
    }

    public void setDictTypeCode(String dictTypeCode) {
        this.dictTypeCode = dictTypeCode;
    }
    public String getDictTypeName() {
        return dictTypeName;
    }

    public void setDictTypeName(String dictTypeName) {
        this.dictTypeName = dictTypeName;
    }
    public Integer getDictTypeType() {
        return dictTypeType;
    }

    public void setDictTypeType(Integer dictTypeType) {
        this.dictTypeType = dictTypeType;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
    public Integer getLeaf() {
        return leaf;
    }

    public void setLeaf(Integer leaf) {
        this.leaf = leaf;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysDictType{" +
            "id=" + id +
            ", parentId=" + parentId +
            ", dictTypeCode=" + dictTypeCode +
            ", dictTypeName=" + dictTypeName +
            ", dictTypeType=" + dictTypeType +
            ", sort=" + sort +
            ", leaf=" + leaf +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
        "}";
    }
}
